package cn.com.myshiro.service;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.myshiro.bean.Sysrolepermission;
import  cn.com.myshiro.dao.SysrolepermissionDao;

@Service
 public class SysrolepermissionService {


   @Autowired
   SysrolepermissionDao dao;


   public List<Sysrolepermission> allSysrolepermission(Map<Object,Object> map){
	     return dao.allSysrolepermission(map);
   }

   public void delSysrolepermission(int id){
	   dao.delSysrolepermission(id);
   }

   public Sysrolepermission sysrolepermission(int id){
	   return dao.sysrolepermission(id);
   }

   public void updateSysrolepermission(Sysrolepermission sysrolepermission){
	   dao.updateSysrolepermission(sysrolepermission);
   }

   public void addSysrolepermission(Sysrolepermission sysrolepermission){
   	dao.addSysrolepermission(sysrolepermission);
   }

	public int countSysrolepermission(){
		return dao.countSysrolepermission();
	}
}
